<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
    <head>
        <title></title>
        <meta charset="utf-8">
        <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <link rel="stylesheet" href="css/ui-base.css">
        <link rel="stylesheet" href="css/ui-box.css">
        <link rel="stylesheet" href="css/ui-color.css">
		<link rel="stylesheet" href="css/ui-res.css">
		<link rel="stylesheet" href="css/ui-img.css">
        <script src="js/zy_control.js">
        </script>
        <script src="js/zy_click.js">
        </script>
        <script>
        </script>
    </head>
	<style>
		.text-c{
		text-align:center;
	
		min-height:2.5em;
		 line-height:2.5em;
	}
	.text-c1{
		text-align:center;
	
		min-height:3em;
		 line-height:3em;
	}
	.border-blue{
		border: 1px solid blue;
	}
	</style>
    <body class="um-vp c-wh" ontouchstart>
        <div id="page_0" class="up ub ub-ver" tabindex="0">
            <!--header开始-->
              <div id="header" class="uh  t-wh ub" style="background-color:#292929"  >
	        	<div class="umw4 imgBack" ontouchstart="zy_touch()" onclick="">
	            <!--插入按钮控件-->
	        	</div>
	            <h1 class="ut ub-f1 ulev0 ut-s tx-c">签到</h1>
				<div class="umw4 imgWriter" ontouchstart="zy_touch()" onclick="">
	            <!--插入按钮控件-->
        	</div>
       		 </div>
            <!--header结束--><!--content开始-->
            <div id="content" class="ub-f1 tx-l t-bla ">
                <div class="ub ub-ver" style="min-height:16em;padding-top:3em;">
                	<div class="ub-f1 imgRegBack1" style="max-height:8em;">
                		<div class="ub-f1" style="min-height:3em;"></div>
						<div class="ub-f2 ub">
							<div class="ub-f1 ub">
								<div class="tx-c  " style="min-width: 5em;margin:0 auto">
									
									<div id="reg" class="text-c1 t-wh" onclick="registration()" style="min-height: 3em;min-width: 6em;margin:0 auto;background-color: rgb(243, 9, 9);">
										我要签到
									</div>
								</div>

								</div>
							</div>
						</div>
					
					<div class="ub-f1 ub-ver ub imgRegBack2">
                		<div class="ub" style="min-height:.9em;">
                		</div>
						<div class="ub-f1 tx-c" style="min-height:1.5em;">
							
							
								你已连续签到1天,累计签到5天
						
							
						</div>
                	</div>
                </div>
            </div>
            <!--content结束--><!--footer开始-->
           
            <!--footer结束-->
        </div>
    </body>
    <script>
    	zy_init();
		var url="http://diaoyumi.ourstu.com/checkin/checkin.html";
		function registration(){
			var reg=$$("reg");
			reg.style.backgroundColor="rgb(117, 113, 113)";
			reg.innerHTML="已签到";
		}
		function requestReg(){
			var httpID=999;
			uexXmlHttpMgr.onData=function (inOpCode,inStatus,inResult){
				if(inStatus==1){
					var json=JSON.parse(inResult);
					if(json["success"]){
						window.localStorgae.setItem("CheckInCount",json["count"]);
						uexXmlHttpMgr.close(httpID);
						changeDisplay();
						uexWindow.toast(1,5,"签到成功。",900);
					}
				}
			};
			var session_id=window.localStorage["session_id"];
			uexXmlHttpMgr.open(httpID,'post',url,3000);
			uexXmlHttpMgr.setPostData("session_id",session_id);
			uexXmlHttpMgr.send(httpID);
		}
		function changeDisplay(){
			var weekDay=$$("weekDay");
			var month=$$("month");
			var day=$$("day");
			var myDate=new Date();
			var WeekDay=parseInt(myDate.getDay())+1;
			var Month=parseInt(myDate.getMonth())+1;
			var Day=parseInt(myDate.getDate());
			weekDay.innerHTML=Day;
			month.innerHTML=Month;
			day.innerHTML=Day;
			
		}
		
    </script>
</html>
